import {createStore, combineReducers, applyMiddleware} from "redux"
import thunk from "redux-thunk"
import userReducer from "./userStore/reducer"

const mainReducer = combineReducers({
  user: userReducer,
})

const store = createStore(mainReducer, applyMiddleware(thunk))

store.subscribe(() => {
  console.log("store 更新：", store.getState())
})

export default store
